﻿using System;
using Newtonsoft.Json;
using System.ComponentModel.DataAnnotations.Schema;
using YiSha.Util;

namespace YiSha.Entity.SaleManage
{
    /// <summary>
    /// 创 建：admin
    /// 日 期：2019-12-14 10:14
    /// 描 述：销售漏斗实体类
    /// </summary>
    [Table("sale_funnel")]
    public class FunnelEntity : BaseExtensionEntity
    {
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public string AreaId { get; set; }
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public string Saler { get; set; }
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public string ClientName { get; set; }
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public string Adress { get; set; }
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public string ClientType { get; set; }

        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public string ProductId { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [NotMapped]
        public string ProductName { get; set; }

        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public int? ProductNumber { get; set; }
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public decimal? SumPrice { get; set; }
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(DateTimeJsonConverter))]
        public DateTime? StatementTime { get; set; }
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public int? ContendNumber { get; set; }
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public string Opportunitie { get; set; }
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public string Stage { get; set; }
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(DateTimeJsonConverter))]
        public DateTime? StageTime { get; set; }
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public string ChanceSum { get; set; }
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(DateTimeJsonConverter))]
        public DateTime? LastTime { get; set; }
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public string NextAction { get; set; }
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(DateTimeJsonConverter))]
        public DateTime? NextTime { get; set; }
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public string RivalA { get; set; }
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public string ProductModelA { get; set; }
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public string RivalB { get; set; }
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public string ProductModelB { get; set; }
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public string Contact { get; set; }
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public string ContactMobile { get; set; }
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public string Purchase { get; set; }
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public string PurchaseMobile { get; set; }
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public string Dean { get; set; }
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public string DeanMobile { get; set; }
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public string LeadSource { get; set; }
    }
}
